/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.agh.student.logic.dao;

import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.Query;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.Name;
import pl.edu.agh.student.model.Role;

/**
 *
 * @author janburkot
 */
@Stateless
@Name(RoleDao.NAME)
public class RoleDaoImpl extends GenericDaoImpl<Role> implements RoleDao {

    public List<Role> findAll() {
        final Query query = entityManager.createQuery("select role from Role role");
        return query.getResultList();
    }

}
